package com.qx.pethome.entity;

import java.util.Date;

public class Answer {
    private Integer anId;//回答编号
    private Date anTime;//回答时间
    private Integer admId;//管理员编号
    private Integer uId;//用户编号
    private Integer pId;//宠物编号
    private String anTest;//回答内容
    private String anEplay;//回答评论内容
    private Integer cId;//评论编号

    public Answer() {
    }

    public Answer(Date anTime, Integer admId, Integer uId, Integer pId, String anTest, String anEplay, Integer cid) {
        this.anTime = anTime;
        this.admId = admId;
        this.uId = uId;
        this.pId = pId;
        this.anTest = anTest;
        this.anEplay = anEplay;
        this.cId = cid;
    }

    public Answer(Integer anId, Date anTime, Integer admId, Integer uId, Integer pId, String anTest, String anEplay, Integer cid) {
        this.anId = anId;
        this.anTime = anTime;
        this.admId = admId;
        this.uId = uId;
        this.pId = pId;
        this.anTest = anTest;
        this.anEplay = anEplay;
        this.cId = cid;
    }

    public Integer getAnId() {
        return anId;
    }

    public void setAnId(Integer anId) {
        this.anId = anId;
    }

    public Date getAnTime() {
        return anTime;
    }

    public void setAnTime(Date anTime) {
        this.anTime = anTime;
    }

    public Integer getAdmId() {
        return admId;
    }

    public void setAdmId(Integer admId) {
        this.admId = admId;
    }

    public Integer getuId() {
        return uId;
    }

    public void setuId(Integer uId) {
        this.uId = uId;
    }

    public Integer getpId() {
        return pId;
    }

    public void setpId(Integer pId) {
        this.pId = pId;
    }

    public String getAnTest() {
        return anTest;
    }

    public void setAnTest(String anTest) {
        this.anTest = anTest;
    }

    public String getAnEplay() {
        return anEplay;
    }

    public void setAnEplay(String anEplay) {
        this.anEplay = anEplay;
    }

    public Integer getcId() {
        return cId;
    }

    public void setcId(Integer cId) {
        this.cId = cId;
    }

    @Override
    public String toString() {
        return "回答{" +
                "回答编号=" + anId +
                ", 回答时间=" + anTime +
                ", 管理员编号=" + admId +
                ", 用户编号=" + uId +
                ", 宠物编号=" + pId +
                ", 回答内容='" + anTest + '\'' +
                ", 回答评论内容='" + anEplay + '\'' +
                ", 评论编号=" + cId +
                '}';
    }
}
